package com.clkj.xiuzheng.pojo.shangcheng;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
* 
* @TableName t_xz_product
*/
@ApiModel( value ="t_xz_product" )
@Table( name ="t_xz_product" )
public class SProduct implements Serializable {

    /**
    * 商城 药品主表
    */
    @Id
    @Column(name = "product_id" ,updatable = false)
    @ApiModelProperty("商品id")
    private Integer productId;
    /**
    * 药品名称
    */
    @Column(name = "product_name" )
    @ApiModelProperty("药品名称")
    private String productName;

    /**
    * 付款人数
    */
    @Column(name = "product_buy_num" )
    @ApiModelProperty("付款人数")
    private Integer productBuyNum;
    /**
    * 药品功能描述
    */
    @Column(name = "product_description" )
    @ApiModelProperty("药品功能描述")
    private String productDescription;

    /**
    * 药品头像
    */
    @Column(name = "product_image" )
    @ApiModelProperty("药品头像")
    private String productImage;
    /**
    * 生产商id
    */
    @Column(name = "factory_id" )
    @ApiModelProperty("生产商id")
    private Integer factoryId;

    /**
    * 商品一级分类id
    */
    @Column(name = "category_one_id" )
    @ApiModelProperty("商品一级分类id")
    private Integer categoryOneId;

    /**
     * 商品二级分类id
     */
    @Column(name = "category_two_id" )
    @ApiModelProperty("商品二级分类id")
    private Integer categoryTwoId;

    /**
     * 商品三级分类id
     */
    @Column(name = "category_three_id" )
    @ApiModelProperty("商品三级分类id")
    private Integer categoryThreeId;

    /**
    * 0下架
    */
    @Column(name = "product_status" )
    @ApiModelProperty("0下架")
    private Integer productStatus;
    /**
    * 0 正常商品 1 钻石商品
    */
    @Column(name = "product_kind" )
    @ApiModelProperty(" 0 正常商品 1 钻石商品")
    private Integer productKind;


    @Column(name = "company_id" )
    @ApiModelProperty("公司id")
    private Integer companyId;

    @Column(name = "product_video" )
    @ApiModelProperty("商品视频展示")
    private String productVideo;

    @Column(name = "product_brand_id" )
    @ApiModelProperty("商品品牌id")
    private Integer productBrandId;

    @Column(name = "product_sale_type" )
    @ApiModelProperty("1 常规商品 2 热卖商品 0 滞销商品")
    private Integer productSaleType;


    @Column(name = "max_price" )
    @ApiModelProperty("规格价格")
    private double maxPrice;

    @Column(name = "max_source" )
    @ApiModelProperty("规格积分")
    private Integer maxSource;


    /**
     * 商品评论总数
     */
    @Transient
    private Integer ScProductcommentNum;
    /**
     * 商品界面展示的评论
     */

    private List<ProductComment> productCommentList;
    /**
     * 生产商名字
     */
    @Transient
    private String factoryName;
    /**
     * 品牌名称
     */
    @Transient
    private String brandName;

    /**
     * 商品所有规格列表
     */
    @Transient
    private List<ProductFormat> ProductFormat;

    /**
     * 商品修改规格列表
     */
    @Transient
    private List<ProductFormat> ProductUpdateFormat;
    /**
     * 商品库存总数
     */
    @Transient
    private Integer ProductNum;
    /**
     * 商品总销量
     */
    @Transient
    private Integer ProductSales;

    @Transient
    private String categoryOneName;

    @Transient
    private String categoryTwoName;

    @Transient
    private String categoryThreeName;

    @Transient
    private List<ProductImage> lunboImage;

    @Transient
    private List<ProductImage> detailImage;





    public Integer getMaxSource() {
        return maxSource;
    }

    public void setMaxSource(Integer maxSource) {
        this.maxSource = maxSource;
    }

    public String getCategoryOneName() {
        return categoryOneName;
    }

    public void setCategoryOneName(String categoryOneName) {
        this.categoryOneName = categoryOneName;
    }

    public String getCategoryTwoName() {
        return categoryTwoName;
    }

    public void setCategoryTwoName(String categoryTwoName) {
        this.categoryTwoName = categoryTwoName;
    }

    public String getCategoryThreeName() {
        return categoryThreeName;
    }

    public void setCategoryThreeName(String categoryThreeName) {
        this.categoryThreeName = categoryThreeName;
    }

    public Integer getCategoryTwoId() {
        return categoryTwoId;
    }

    public void setCategoryTwoId(Integer categoryTwoId) {
        this.categoryTwoId = categoryTwoId;
    }


    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductBuyNum() {
        return productBuyNum;
    }

    public void setProductBuyNum(Integer productBuyNum) {
        this.productBuyNum = productBuyNum;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }



    public String getProductImage() {
        return productImage;
    }

    public void setProductImage(String productImage) {
        this.productImage = productImage;
    }

    public Integer getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Integer factoryId) {
        this.factoryId = factoryId;
    }

    public Integer getCategoryOneId() {
        return categoryOneId;
    }

    public void setCategoryOneId(Integer categoryOneId) {
        this.categoryOneId = categoryOneId;
    }



    public Integer getCategoryThreeId() {
        return categoryThreeId;
    }

    public void setCategoryThreeId(Integer categoryThreeId) {
        this.categoryThreeId = categoryThreeId;
    }

    public Integer getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(Integer productStatus) {
        this.productStatus = productStatus;
    }


    public Integer getScProductcommentNum() {
        return ScProductcommentNum;
    }

    public void setScProductcommentNum(Integer scProductcommentNum) {
        ScProductcommentNum = scProductcommentNum;
    }

    public List<ProductComment> getScProductcommentList() {
        return productCommentList;
    }

    public void setScProductcommentList(List<ProductComment> productCommentList) {
        this.productCommentList = productCommentList;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }



    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }


    public Integer getProductNum() {
        return ProductNum;
    }

    public void setProductNum(Integer productNum) {
        ProductNum = productNum;
    }

    public Integer getProductSales() {
        return ProductSales;
    }

    public void setProductSales(Integer productSales) {
        ProductSales = productSales;
    }


    public String getProductVideo() {
        return productVideo;
    }

    public void setProductVideo(String productVideo) {
        this.productVideo = productVideo;
    }


    public Integer getProductBrandId() {
        return productBrandId;
    }

    public void setProductBrandId(Integer productBrandId) {
        this.productBrandId = productBrandId;
    }


    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public List<com.clkj.xiuzheng.pojo.shangcheng.ProductFormat> getProductFormat() {
        return ProductFormat;
    }

    public void setProductFormat(List<com.clkj.xiuzheng.pojo.shangcheng.ProductFormat> productFormat) {
        ProductFormat = productFormat;
    }

    public Integer getProductSaleType() {
        return productSaleType;
    }

    public void setProductSaleType(Integer productSaleType) {
        this.productSaleType = productSaleType;
    }

    public Integer getProductKind() {
        return productKind;
    }

    public void setProductKind(Integer productKind) {
        this.productKind = productKind;
    }


    public List<ProductImage> getLunboImage() {
        return lunboImage;
    }

    public void setLunboImage(List<ProductImage> lunboImage) {
        this.lunboImage = lunboImage;
    }

    public List<ProductImage> getDetailImage() {
        return detailImage;
    }

    public void setDetailImage(List<ProductImage> detailImage) {
        this.detailImage = detailImage;
    }

    public List<com.clkj.xiuzheng.pojo.shangcheng.ProductFormat> getProductUpdateFormat() {
        return ProductUpdateFormat;
    }

    public void setProductUpdateFormat(List<com.clkj.xiuzheng.pojo.shangcheng.ProductFormat> productUpdateFormat) {
        ProductUpdateFormat = productUpdateFormat;
    }


    public double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(double maxPrice) {
        this.maxPrice = maxPrice;
    }
}
